﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TakePhotoTogether.Communication.Protocols
{
    public class TakePhotoData : PayloadData
    {
        public string PhotoFileName = "";

        public TakePhotoData(string filename)
        {
            PhotoFileName = filename;
        }
        
        public TakePhotoData(byte[] data)
        {
            PhotoFileName = Util.GetString(data);
        }

        public byte[] ToBytes()
        {
            return Util.GetBytes(PhotoFileName);
        }
    }
}
